<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Sale_Orders extends CI_Controller {

	public $data;

	public function __construct()
	{
		parent::__construct();
		$this->load->database();
		//载入必要类文件
		$this->load->model('User_model');
		$this->load->model('Right_model');
		$this->load->model('Goods_type_model');
		$this->load->model('Main_goods_model');
		$this->load->model('Sub_goods_model');
		$this->load->model('Supplier_model');
		$this->load->model('Suppliers_Goods_model');
		//载入必要库文件
		$this->load->library('pagination');
		$this->load->library('Access_control');
		$this->load->library('Menu_control');
		$this->load->library('Forbid_resubmit');
		//载入配置文件 并 初始化控制器
		$this->data['site'] = $this->config->item('site');
		$this->data['title'] = 'CRM';
		$this->data['styles'] = array('master.css', 'error.css', 'goods.css');
		$this->data['scripts'] = array('master.js', 'goods.js');
		$this->data['cur_user'] = $this->User_model->getUser($this->input->cookie('user_id'));
		$this->data['header']['username'] = $this->data['cur_user']['realname'];
		$this->data['menus'] = $this->User_model->userMenus($this->config->item('menus'), $this->data['cur_user']['rights']);
		$this->data['menus'] = $this->menu_control->main($this->data['menus'], 4);
		//$this->data['sub_menus'] = $this->_menus();
		$this->data['sub_menu_index'] = '-1';
	}

	public function index()
	{
		$this->load->view_('crm/import_orders_view', $this->data);
	}

}

/* End of file sale_orders.php */